<?php
namespace App\Libraries\rong_cloud_sdk;


class Rongyun {
	protected $key = '';
	protected $secret = '';
	public $rongyun;
	public function __construct()
	{
		include_once 'API/rongcloud.php';
		$this->key = env('RONGCLOUD_KEY');
		$this->secret= env('RONGCLOUD_SECRET');
		$this->rongyun = new \RongCloud($this->key,$this->secret);
	}
	
	// 魔术方法，如果属性或类不存在就访问此方法，简易版，不做判断
	public function __call($name, $arguments)
	{
		return $result_json = $this->rongyun->$name();
	}
}